package com.paul.sys.mapper;

import com.paul.sys.model.Ptstaff;
import com.paul.sys.tools.CommPageBean;
import org.apache.ibatis.annotations.Param;

import java.util.*;

public interface PtstaffMapper {
    int deleteByPrimaryKey(String unid);


    int insertSelective(Ptstaff record);

    Ptstaff selectByPrimaryKey(String unid);

    int updateByPrimaryKey(Ptstaff record);

    int updatePwd(Ptstaff record);

    List<Ptstaff> listAll(Map<String, String> param);

    List<Ptstaff> listByPage(@Param("param") Map<String, String> param, @Param("page") CommPageBean pageBean);

    Ptstaff selectByCodeAndPass(Map<String, String> param);

    int deleteByUnids(String[] unids);

    List<Map> listRoleByUserByPage(@Param("param") Map param, @Param("page") CommPageBean pageBean);

    int insertRoleLink(Map<String, Object> param);

    int updateRoleLinkEnable(Map<String, Object> param);

    List<Map> selectRoleLink(Map<String, Object> param);

    Map<String,String> getUnid();


}